using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace VisualTail
{
    /// <summary>
    /// 
    /// </summary>
    public partial class Directorios : Form
    {
        //MDI padre = null;
        /// <summary>
        /// Valor seleccionado.
        /// </summary>
        public string valorSeleccionado;
        /// <summary>
        /// Fuente de datos.
        /// </summary>
        public DSWorkflow ds = null;

        /// <summary>
        /// Constructor.
        /// </summary>
        public Directorios(){
            InitializeComponent();
        }

        /// <summary>
        /// Establece la fuente de datos.
        /// </summary>
        /// <param name="_ds"></param>
        public void SetDSWorkflow(DSWorkflow _ds)
        {
            this.ds = _ds;
        }

        private void Directorios_Load(object sender, EventArgs e) {
            this.dSLogs = ds;
            dataGridView1.DataSource = ds.DTDirectorios;
            dataGridView1.Refresh();
        }


        void dataGridView1_RowHeaderMouseDoubleClick(object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e)
        {
            DataGridView dg = (DataGridView)sender;
            //MessageBox.Show(dg.SelectedRows[0].Cells[0].Value.ToString());
            valorSeleccionado = dg.SelectedRows[0].Cells[0].Value.ToString();
            this.DialogResult = DialogResult.OK;
        }
    }
}